#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_process2.py
# author:Jackiex
# datetime:2023/5/29 10:39
# software: PyCharm

"""
this is function  description 
"""
import time
import multiprocessing


def sing():
    """ 唱歌5秒钟"""
    for i in range(5):
        print("****正在唱歌****")
        time.sleep(1)


def dance():
    """ 唱歌5秒钟"""
    for i in range(5):
        print("*****正在跳舞*******")
        time.sleep(1)


if __name__ == "__main__":
    p1 = multiprocessing.Process(target=sing)
    p2 = multiprocessing.Process(target=dance)

    p1.start()

    p2.start()
